<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>考生管理-本场考试信息</title>

    <th:block th:include="fragment_header :: header">
    </th:block>
</head>
<body>
<div th:replace="fragment_menu :: navmenu"></div>
<!--<h2 style="padding: 20px 100px">SONY</h2>-->
<ul style="background-color:  #DCDCDC;">
    <ul class="nav nav-tabs" style="padding:0px 100px" >
        <li class="nav-item " >
            <a class="nav-link active" href="#" th:href="@{/exam_student/students}">考生管理 </a>
        </li>
        <li class="nav-item dropdown ">
            <a class="nav-link dropdown-toggle text-black" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">考生添加 </a>
            <ul class="dropdown-menu" style="background-color: #DCDCDC;">
                <li><a class="dropdown-item"  th:href="@{/exam_student/add}">通过考生库添加 </a></li>
                <li><a class="dropdown-item"  th:href="@{/exam_student/find}">通过搜索员工号添加 </a></li>
<!--                <li><a class="dropdown-item"  th:href="@{/exam_student/input}">通过输入考生信息添加 </a></li>-->
            </ul>
        </li>
        <li class="nav-item">
            <a class="nav-link text-black" th:href="@{/exam_student/exam_select}">考试信息查询 </a>
        </li>
    </ul>
</ul>
<div class="pre-scrollable">
    <form action="#" th:action="@{/exam_student/del}" method="post" class="form-horizontal">
        <div class="alert alert-success alert-dismissible fade show" th:unless="${ success eq 'null' }">
            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
            <strong th:text="${success}">操作成功</strong>
        </div>
        <div style="padding: 50px 100px 10px">
            <h5 class="text-muted" style="padding: 10px 10px">本场考试信息</h5>
            <table class="table table-bordered" style="background-color:#FFFFFF;">
                <caption></caption>
                <thead class="table-secondary">
                <tr>
                    <th>考试名称</th>
                    <th>考试日期</th>
                    <th>考试时限</th>
                    <th>考试总成绩</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <input th:value="${examModel.id}" type="hidden" name="examId"/>
                    <td th:text="${examModel.name}" type="datetime-local">*</td>
                    <td th:text="${examModel.examAt}">考试日期</td>
                    <td th:text="${examModel.timeLimit}">*</td>
                    <td th:text="${examModel.totalScore}">*</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div style="padding: 50px 100px 10px">
            <h5 class="text-muted" style="padding: 10px 10px">本场考生信息</h5>
            <table class="table table-bordered" style="background-color:#FFFFFF;">
                <thead class="table-secondary">
                <tr>
                    <!--            <th scope="col">#</th>-->
                    <th scope="col">员工号</th>
                    <th scope="col">姓名</th>
                    <th scope="col">性别</th>
                    <th scope="col">邮箱</th>
                    <th scope="col">电话</th>
                    <th scope="col"></th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="studentModel: ${studentModels}">
                    <!--            <th scope="row">1</th>-->
                    <td th:text="${studentModel.employeeNo}">员工号</td>
                    <td th:text="${studentModel.name}">姓名</td>
                    <td th:text="${studentModel.gender} eq '1'?'男':'女'">性别</td>
                    <td th:text="${studentModel.email}">邮箱</td>
                    <td th:text="${studentModel.mobile}">电话</td>
                    <td>
                        <div class="d-flex align-items-center justify-content-center">
                            <button type="submit" class="btn btn-danger" style="text-align:center" name="studentId"
                                    th:value="${studentModel.id}">
                                删除
                            </button>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
</body>
</html>